<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\OrderAddress
 *
 * @property integer $id 地址标识
 * @property integer $user_id 用户标识
 * @property string $consignee 收件人
 * @property string $province 省份
 * @property string $city 城市
 * @property string $area 地区
 * @property string $add_detail 详细地址
 * @property string $postcode 邮政编码
 * @property string $mobilephone 手机号
 * @property string $telephone 固定电话号码
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereConsignee($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereProvince($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereCity($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereArea($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereAddDetail($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress wherePostcode($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereMobilephone($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereTelephone($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property-read \App\User $user
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\OrderAddress withoutTrashed()
 */
class OrderAddress extends Model
{
    protected $table='order_address';
    use SoftDeletes;

    public function user(){
        return $this->belongsTo('App\User','user_id');
    }
}